import request from '@/utils/request'

// 查询网络设备管理列表
export function listNetworkDeviceMgmt(query) {
  return request({
    url: '/info/networkDeviceMgmt/list',
    method: 'get',
    params: query
  })
}

// 查询网络设备管理详细
export function getNetworkDeviceMgmt(neId) {
  return request({
    url: '/info/networkDeviceMgmt/' + neId,
    method: 'get'
  })
}

// 新增网络设备管理
export function addNetworkDeviceMgmt(data) {
  return request({
    url: '/info/networkDeviceMgmt',
    method: 'post',
    data: data
  })
}

// 修改网络设备管理
export function updateNetworkDeviceMgmt(data) {
  return request({
    url: '/info/networkDeviceMgmt',
    method: 'put',
    data: data
  })
}

// 删除网络设备管理
export function delNetworkDeviceMgmt(neId) {
  return request({
    url: '/info/networkDeviceMgmt/' + neId,
    method: 'delete'
  })
}

// 导出网络设备管理
export function exportNetworkDeviceMgmt(query) {
  return request({
    url: '/info/networkDeviceMgmt/export',
    method: 'get',
    params: query
  })
}

//获取下拉框
export function networkDeviceMgmtOpitons(data) {
  return request({
    url: '/info/networkDeviceMgmt/list/check',
    method: 'get',
    data: data
  })
}